package com.gree.scmservice.entity.smbse;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * Created by 180686 on 2021/3/17 18:59
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleMo {

    private Long roleId;

    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    private String roleKey;

    private String roleSort;

    private String dataScope;

    private boolean menuCheckStrictly;

    private boolean deptCheckStrictly;

    private String status;

    private String delFlag;

    private boolean flag = false;

    private Long[] menuIds;

    private Long[] deptIds;

    private Integer rtyp;

    private String styp;

    private String pano;

    public Smbse05 toSmbse05(){
        Smbse05 smbse05 = new Smbse05(roleKey,roleName,rtyp,pano);
        return smbse05;
    }

}
